package com.axend.aerosense.common.adapter;

import com.axend.aerosense.common.base.IEventBaseContent;
import com.chad.library.adapter.base.BaseProviderMultiAdapter;

import org.jetbrains.annotations.NotNull;

import java.util.List;

public class ProviderMultiAdapter extends BaseProviderMultiAdapter<IEventBaseContent> {

    public ProviderMultiAdapter() {
        super();
        addItemProvider(new TopItemProvider());
        addItemProvider(new CommonProvider());
    }

    @Override
    protected int getItemType(@NotNull List<? extends IEventBaseContent> list, int position ) {
        if(0 == position){
            return 0;
        }else{
            return 1;
        }

    }
}
